package com.atguigu.ssyx.acl.service;

import com.atguigu.ssyx.model.acl.Permission;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

public interface PermissionService extends IService<Permission> {

    // 查询所有菜单权限
    List<Permission> queryAllPermission();

    // 递归删除菜单
    void removeChildById(Long id);

    // 获取所有菜单权限，根据id获取角色已分配菜单权限列表
    List<Permission> findRolePermissionByRoleId(Long roleId);

    // 角色菜单权限分配
    void saveRolePermission(Long roleId, List<Long> permissionId);
}
